<!DOCTYPE html>
<html lang="zh-cn">
<head prefix="og: http://ogp.me/ns#">
  <meta charset="utf-8">
  <title>starRTC文档</title>
  <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <!-- Canonical links -->
  <link rel="canonical" href="http://docs.starrtc.com/zh-cn/docs/android-3a.html">
  <!-- Alternative links -->
  
    
      <link rel="alternative" hreflang="en" href="http://docs.starrtc.com/docs/android-3a.html">
    
      <link rel="alternative" hreflang="zh-cn" href="http://docs.starrtc.com/zh-cn/docs/android-3a.html">
    
  
  <!-- Icon -->
  <link rel="apple-touch-icon" sizes="57x57" href="/icon/apple-touch-icon-57x57.png">
  <link rel="apple-touch-icon" sizes="114x114" href="/icon/apple-touch-icon-114x114.png">
  <link rel="apple-touch-icon" sizes="72x72" href="/icon/apple-touch-icon-72x72.png">
  <link rel="apple-touch-icon" sizes="144x144" href="/icon/apple-touch-icon-144x144.png">
  <link rel="apple-touch-icon" sizes="60x60" href="/icon/apple-touch-icon-60x60.png">
  <link rel="apple-touch-icon" sizes="120x120" href="/icon/apple-touch-icon-120x120.png">
  <link rel="apple-touch-icon" sizes="76x76" href="/icon/apple-touch-icon-76x76.png">
  <link rel="apple-touch-icon" sizes="152x152" href="/icon/apple-touch-icon-152x152.png">
  <link rel="icon" type="image/png" href="/icon/favicon-196x196.png" sizes="196x196">
  <link rel="icon" type="image/png" href="/icon/favicon-160x160.png" sizes="160x160">
  <link rel="icon" type="image/png" href="/icon/favicon-96x96.png" sizes="96x96">
  <link rel="icon" type="image/png" href="/icon/favicon-16x16.png" sizes="16x16">
  <link rel="icon" type="image/png" href="/icon/favicon-32x32.png" sizes="32x32">
  <meta name="msapplication-TileColor" content="#2f83cd">
  <meta name="msapplication-TileImage" content="/icon/mstile-144x144.png">
  <!-- CSS -->
  <!-- build:css build/css/navy.css -->
  <link rel="stylesheet" href="/css/navy.css">
  <!-- endbuild -->
  <link href="https://www.starRTC.com/googleapis.css" rel="stylesheet" type="text/css">
 <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css"> 
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/docsearch.js/1/docsearch.min.css">
  <!-- RSS -->
  <link rel="alternate" href="/atom.xml" title="starRTC文档">
  <!-- Open Graph -->
  <meta name="description" content="初始化&amp;amp;登录SDK公有云服务器版本使用方法注意： 该页面的初始化流程仅适用于公有云服务，使用私有部署服务的初始化参见：https://docs.starrtc.com/zh-cn/docs/android-3b.html 3.1 获取APPIDappID 请在StarRTC官网注册获取 3.2 设置初始化参数 &amp;amp; 初始化SDK用XHCustomConfig初始化SDK,custom">
<meta property="og:type" content="website">
<meta property="og:title" content="starRTC文档">
<meta property="og:url" content="http://docs.starrtc.com/zh-cn/docs/android-3a.html">
<meta property="og:site_name" content="starRTC文档">
<meta property="og:description" content="初始化&amp;amp;登录SDK公有云服务器版本使用方法注意： 该页面的初始化流程仅适用于公有云服务，使用私有部署服务的初始化参见：https://docs.starrtc.com/zh-cn/docs/android-3b.html 3.1 获取APPIDappID 请在StarRTC官网注册获取 3.2 设置初始化参数 &amp;amp; 初始化SDK用XHCustomConfig初始化SDK,custom">
<meta property="og:locale" content="zh-cn">
<meta property="og:updated_time" content="2019-05-29T03:24:36.422Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="starRTC文档">
<meta name="twitter:description" content="初始化&amp;amp;登录SDK公有云服务器版本使用方法注意： 该页面的初始化流程仅适用于公有云服务，使用私有部署服务的初始化参见：https://docs.starrtc.com/zh-cn/docs/android-3b.html 3.1 获取APPIDappID 请在StarRTC官网注册获取 3.2 设置初始化参数 &amp;amp; 初始化SDK用XHCustomConfig初始化SDK,custom">
<meta name="twitter:site" content="hexojs">
<meta property="fb:admins" content="100000247608790">
  <!-- Google Analytics -->
  
</head>

<body>
  <div id="container">
    <header id="header" class="wrapper">
  <div id="header-inner" class="inner">
    <h1 id="logo-wrap">
      
      <a href="https://docs.starrtc.com/" id="logo">starRTC</a>
    </h1>
    <nav id="main-nav">
      <a href="https://www.starRTC.com" class="main-nav-link">官网</a><a href="https://blog.starRTC.com" class="main-nav-link">博客</a><a href="https://github.com/starrtc/android-demo/issues" class="main-nav-link">论坛</a><a href="/zh-cn/docs/" class="main-nav-link">文档</a><a href="/zh-cn/download/" class="main-nav-link">下载</a><a href="/zh-cn/contact/" class="main-nav-link">联系我们</a>
      
    </nav>
    <div id="lang-select-wrap">
      <label id="lang-select-label"><i class="fa fa-globe"></i><span>简体中文</span></label>
      <select id="lang-select" data-canonical="docs/android-3a.html">
        
          <option value="en">English</option>
        
          <option value="zh-cn" selected>简体中文</option>
        
      </select>
    </div>
    <a id="mobile-nav-toggle">
      <span class="mobile-nav-toggle-bar"></span>
      <span class="mobile-nav-toggle-bar"></span>
      <span class="mobile-nav-toggle-bar"></span>
    </a>
  </div>
</header>

    <div id="content-wrap">
  <div id="content" class="wrapper">
    <div id="content-inner">
      <article class="article-container" itemscope itemtype="http://schema.org/Article">
        <div class="article-inner">
          <div class="article">
            <div class="inner">
              <header class="article-header">
                <h1 class="article-title" itemprop="name"></h1>
                <a href="https://github.com/starRTC/docs/edit/master/zh-cn/docs/android-3a.md" class="article-edit-link" title="改进本文"><i class="fa fa-pencil"></i></a>
              </header>
              <div class="article-content" itemprop="articleBody">
                <h1 id="初始化-amp-登录SDK" class="article-heading"><a href="#初始化-amp-登录SDK" class="headerlink" title="初始化&amp;登录SDK"></a>初始化&amp;登录SDK<a class="article-anchor" href="#初始化-amp-登录SDK" aria-hidden="true"></a></h1><h1 id="公有云服务器版本使用方法" class="article-heading"><a href="#公有云服务器版本使用方法" class="headerlink" title="公有云服务器版本使用方法"></a>公有云服务器版本使用方法<a class="article-anchor" href="#公有云服务器版本使用方法" aria-hidden="true"></a></h1><p>注意： 该页面的初始化流程仅适用于公有云服务，使用私有部署服务的初始化参见：<br><a href="https://docs.starrtc.com/zh-cn/docs/android-3b.html">https://docs.starrtc.com/zh-cn/docs/android-3b.html</a></p>
<h2 id="3-1-获取APPID" class="article-heading"><a href="#3-1-获取APPID" class="headerlink" title="3.1 获取APPID"></a>3.1 获取APPID<a class="article-anchor" href="#3-1-获取APPID" aria-hidden="true"></a></h2><p>appID 请在<a href="https://www.starrtc.com/login.html" target="_blank" rel="noopener">StarRTC官网</a>注册获取</p>
<h2 id="3-2-设置初始化参数-amp-初始化SDK" class="article-heading"><a href="#3-2-设置初始化参数-amp-初始化SDK" class="headerlink" title="3.2 设置初始化参数 &amp; 初始化SDK"></a>3.2 设置初始化参数 &amp; 初始化SDK<a class="article-anchor" href="#3-2-设置初始化参数-amp-初始化SDK" aria-hidden="true"></a></h2><p>用XHCustomConfig初始化SDK,customConfig.init之前设置服务地址及账号信息，之后可设置音视频相关配置。<br><figure class="highlight java"><table><tr><td class="code"><pre><span class="line">XHCustomConfig customConfig = XHCustomConfig.getInstance();</span><br><span class="line"><span class="comment">//设置AppID</span></span><br><span class="line">customConfig.setAppId(MLOC.agentId);</span><br><span class="line"><span class="comment">//设置服务地址</span></span><br><span class="line">customConfig.setLoginServerUrl(MLOC.STAR_LOGIN_URL);</span><br><span class="line">customConfig.setChatroomScheduleUrl(MLOC.CHAT_ROOM_SCHEDULE_URL);</span><br><span class="line">customConfig.setLiveSrcScheduleUrl(MLOC.LIVE_SRC_SCHEDULE_URL);</span><br><span class="line">customConfig.setLiveVdnScheduleUrl(MLOC.LIVE_VDN_SCHEDULE_URL);</span><br><span class="line">customConfig.setImScheduleUrl(MLOC.IM_SCHEDULE_URL);</span><br><span class="line">customConfig.setVoipServerUrl(MLOC.VOIP_SERVER_URL);</span><br><span class="line"><span class="comment">//初始化SDK</span></span><br><span class="line">customConfig.initSDK(<span class="keyword">this</span>, MLOC.userId, <span class="keyword">new</span> IXHErrorCallback() &#123;</span><br><span class="line">	<span class="meta">@Override</span></span><br><span class="line">	<span class="function"><span class="keyword">public</span> <span class="keyword">void</span> <span class="title">error</span><span class="params">(<span class="keyword">final</span> String errMsg, Object data)</span> </span>&#123;</span><br><span class="line">		runOnUiThread(<span class="keyword">new</span> Runnable() &#123;</span><br><span class="line">			<span class="meta">@Override</span></span><br><span class="line">			<span class="function"><span class="keyword">public</span> <span class="keyword">void</span> <span class="title">run</span><span class="params">()</span> </span>&#123;</span><br><span class="line">				MLOC.showMsg(errMsg);</span><br><span class="line">			&#125;</span><br><span class="line">		&#125;);</span><br><span class="line">	&#125;</span><br><span class="line">&#125;,<span class="keyword">new</span> Handler());</span><br><span class="line"><span class="comment">//设置输出视频的分辨率；</span></span><br><span class="line">customConfig.setDefConfigVideoSize(XHConstants.XHCropTypeEnum.STAR_VIDEO_CONFIG_360BW_640BH_180SW_320SH);</span><br><span class="line"><span class="comment">//设置输出视频的帧率，码率(单位Kb)；</span></span><br><span class="line">customConfig.setDefConfiBigVideoConfig(<span class="number">15</span>,<span class="number">500</span>);</span><br></pre></td></tr></table></figure></p>
<h2 id="3-3-获取authKey" class="article-heading"><a href="#3-3-获取authKey" class="headerlink" title="3.3 获取authKey"></a>3.3 获取authKey<a class="article-anchor" href="#3-3-获取authKey" aria-hidden="true"></a></h2><p>authKey是每一位用户的身份授权标识，可以向您的服务器请求获取。</p>
<p>服务器生成authKey方法：目前需要您的服务器向星盒服务器发送请求来获取authKey，具体如下：</p>
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line">请求接口： https:<span class="comment">//api.starRTC.com/aec/authKey</span></span><br><span class="line">参数： </span><br><span class="line">	appid: 您注册时会自动生成，请登录官网查看</span><br><span class="line">	secret:</span><br><span class="line">	userid（用户唯一标识）</span><br><span class="line">返回 :失败 &#123;status:<span class="number">0</span>, data:“errorMsg”&#125; </span><br><span class="line">      成功 &#123;status:<span class="number">1</span>, data:“authKey”&#125;</span><br></pre></td></tr></table></figure>
<h2 id="3-4-登录-退出SDK" class="article-heading"><a href="#3-4-登录-退出SDK" class="headerlink" title="3.4 登录/退出SDK"></a>3.4 登录/退出SDK<a class="article-anchor" href="#3-4-登录-退出SDK" aria-hidden="true"></a></h2><p>获取XHLgoinManager类实例并添加IXHLoginManagerListener监听；<br>调用XHLoginManager的login和loginPublic两个方法登录SDK；<br>login方法需要传鉴权码，用来验证用户权限。<br>loginPublic方法不需要鉴权码，用户权限不做限制(不需要3.3获取authKey)。<br>注意：同一个app体系内，只允许选择其中一种登录方式，不能一部分用login,一部分用longinPublic。</p>
<p>示例：<br><figure class="highlight java"><table><tr><td class="code"><pre><span class="line">XHLoginManager loginManager = XHClient.getInstance().getLoginManager()；</span><br><span class="line">loginManager.addListener(<span class="keyword">new</span> IXHLoginManagerListener() &#123;</span><br><span class="line">	<span class="meta">@Override</span></span><br><span class="line">	<span class="function"><span class="keyword">public</span> <span class="keyword">void</span> <span class="title">onConnectionStateChanged</span><span class="params">(XHConstants.XHSDKConnectionState state)</span> </span>&#123;</span><br><span class="line">		<span class="comment">//服务器的连接状态改变的通知</span></span><br><span class="line">	&#125;</span><br><span class="line"></span><br><span class="line">	<span class="meta">@Override</span></span><br><span class="line">	<span class="function"><span class="keyword">public</span> <span class="keyword">void</span> <span class="title">onKickedByOtherDeviceLogin</span><span class="params">()</span> </span>&#123;</span><br><span class="line">		<span class="comment">//用户被挤下线的通知</span></span><br><span class="line">	&#125;</span><br><span class="line"></span><br><span class="line">	<span class="meta">@Override</span></span><br><span class="line">	<span class="function"><span class="keyword">public</span> <span class="keyword">void</span> <span class="title">onLogout</span><span class="params">()</span> </span>&#123;</span><br><span class="line">		<span class="comment">//成功退出登录的通知</span></span><br><span class="line">	&#125;</span><br><span class="line">&#125;);</span><br><span class="line"></span><br><span class="line"><span class="comment">//登录SDK 需要验证用户权限</span></span><br><span class="line">loginManager.login(authKey, <span class="keyword">new</span> IXHResultCallback() &#123;</span><br><span class="line">	<span class="meta">@Override</span></span><br><span class="line">	<span class="function"><span class="keyword">public</span> <span class="keyword">void</span> <span class="title">success</span><span class="params">(Object data)</span> </span>&#123;</span><br><span class="line">		<span class="comment">//登录成功</span></span><br><span class="line">	&#125;</span><br><span class="line"></span><br><span class="line">	<span class="meta">@Override</span></span><br><span class="line">	<span class="function"><span class="keyword">public</span> <span class="keyword">void</span> <span class="title">failed</span><span class="params">(String errMsg)</span> </span>&#123;</span><br><span class="line">		<span class="comment">//登录失败</span></span><br><span class="line">	&#125;</span><br><span class="line">&#125;);</span><br><span class="line"></span><br><span class="line"><span class="comment">//登录SDK 不需要验证用户权限</span></span><br><span class="line">loginManager.loginPublic(<span class="keyword">new</span> IXHResultCallback() &#123;</span><br><span class="line">	<span class="meta">@Override</span></span><br><span class="line">	<span class="function"><span class="keyword">public</span> <span class="keyword">void</span> <span class="title">success</span><span class="params">(Object data)</span> </span>&#123;</span><br><span class="line">		<span class="comment">//登录成功</span></span><br><span class="line">	&#125;</span><br><span class="line"></span><br><span class="line">	<span class="meta">@Override</span></span><br><span class="line">	<span class="function"><span class="keyword">public</span> <span class="keyword">void</span> <span class="title">failed</span><span class="params">(String errMsg)</span> </span>&#123;</span><br><span class="line">		<span class="comment">//登录失败</span></span><br><span class="line">	&#125;</span><br><span class="line">&#125;);</span><br><span class="line"></span><br><span class="line"><span class="comment">//退出SDK</span></span><br><span class="line">loginManager.logout();</span><br></pre></td></tr></table></figure></p>

              </div>
              <footer class="article-footer">
                <time class="article-footer-updated" datetime="2019-05-29T03:24:36.422Z" itemprop="dateModified">上次更新<script type="text/javascript">document.write("："+(new Date()).toISOString().slice(0,10))</script></time>
		<a href="android-2.html" class="article-footer-prev" title="2.SDK的基本说明"><i class="fa fa-chevron-left"></i><span>上一页</span></a><a href="android-3b.html" class="article-footer-next" title="3b.初始化(私有部署)"><span>下一页</span><i class="fa fa-chevron-right"></i></a>
              </footer>
            </div>
          </div>
          <aside id="article-toc" role="navigation">
            <div id="article-toc-inner">
              <strong class="sidebar-title">目录</strong>
              <ol class="toc"><li class="toc-item toc-level-1"><a class="toc-link" href="#初始化-amp-登录SDK"><span class="toc-text">初始化&amp;登录SDK</span></a></li><li class="toc-item toc-level-1"><a class="toc-link" href="#公有云服务器版本使用方法"><span class="toc-text">公有云服务器版本使用方法</span></a><ol class="toc-child"><li class="toc-item toc-level-2"><a class="toc-link" href="#3-1-获取APPID"><span class="toc-text">3.1 获取APPID</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#3-2-设置初始化参数-amp-初始化SDK"><span class="toc-text">3.2 设置初始化参数 &amp; 初始化SDK</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#3-3-获取authKey"><span class="toc-text">3.3 获取authKey</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#3-4-登录-退出SDK"><span class="toc-text">3.4 登录/退出SDK</span></a></li></ol></li></ol>
              <a href="#" id="article-toc-top">回到顶部</a>
            </div>
          </aside>
        </div>
      </article>
      <aside id="sidebar" role="navigation">
  <div class="inner">
    <strong class="sidebar-title">开始使用</strong><a href="index.html" class="sidebar-link">概述</a><strong class="sidebar-title">Android集成</strong><a href="android-1.html" class="sidebar-link">1.嵌入SDK</a><a href="android-2.html" class="sidebar-link">2.SDK的基本说明</a><a href="android-3a.html" class="sidebar-link current">3a.初始化(公有云)</a><a href="android-3b.html" class="sidebar-link">3b.初始化(私有部署)</a><a href="android-4.html" class="sidebar-link">4.一对一消息</a><a href="android-5.html" class="sidebar-link">5.群组消息</a><a href="android-6.html" class="sidebar-link">6.聊天室消息</a><a href="android-7.html" class="sidebar-link">7.一对一视频通话</a><a href="android-8.html" class="sidebar-link">8.视频会议</a><a href="android-9.html" class="sidebar-link">9.互动直播</a><a href="android-10.html" class="sidebar-link">10.其它配套组件</a><a href="android-user-list.html" class="sidebar-link">在线用户列表</a><a href="android-beauty-callback.html" class="sidebar-link">美颜接口</a><a href="android-errCode.html" class="sidebar-link">ErrorCode对照表</a><strong class="sidebar-title">iOS集成</strong><a href="ios-1.html" class="sidebar-link">1.嵌入SDK</a><a href="ios-2.html" class="sidebar-link">2.SDK的基本说明</a><a href="ios-3a.html" class="sidebar-link">3a.初始化(公有云)</a><a href="ios-3b.html" class="sidebar-link">3b.初始化(私有部署)</a><a href="ios-4.html" class="sidebar-link">4.一对一消息</a><a href="ios-5.html" class="sidebar-link">5.群组消息</a><a href="ios-6.html" class="sidebar-link">6.聊天室消息</a><a href="ios-7.html" class="sidebar-link">7.一对一视频通话</a><a href="ios-8.html" class="sidebar-link">8.视频会议</a><a href="ios-9.html" class="sidebar-link">9.互动直播</a><a href="ios-10.html" class="sidebar-link">10.内网P2P直连通话</a><strong class="sidebar-title">web端集成</strong><a href="web-1.html" class="sidebar-link">1.嵌入SDK</a><a href="web-2.html" class="sidebar-link">2.SDK的基本说明</a><a href="web-3.html" class="sidebar-link">3.初始化</a><a href="web-4.html" class="sidebar-link">4.一对一消息</a><a href="web-5.html" class="sidebar-link">5.群组消息</a><a href="web-6.html" class="sidebar-link">6.聊天室消息</a><a href="web-7.html" class="sidebar-link">7.一对一视频通话</a><a href="web-8.html" class="sidebar-link">8.视频会议</a><a href="web-9.html" class="sidebar-link">9.互动直播</a><a href="web-10.html" class="sidebar-link">10.私有部署</a><strong class="sidebar-title">Win PC端集成</strong><a href="win-1.html" class="sidebar-link">1.嵌入SDK</a><a href="win-2.html" class="sidebar-link">2.初始化</a><a href="win-3.html" class="sidebar-link">3.一对一消息</a><a href="win-4.html" class="sidebar-link">4.群组消息</a><a href="win-5.html" class="sidebar-link">5.聊天室消息</a><a href="win-6.html" class="sidebar-link">6.一对一视频通话</a><a href="win-7.html" class="sidebar-link">7.视频会议</a><a href="win-8.html" class="sidebar-link">8.互动直播</a><strong class="sidebar-title">服务端api开发</strong><a href="aec-index.html" class="sidebar-link">概述</a><a href="aec-group.html" class="sidebar-link">群事件通知</a><a href="aec-chatroom.html" class="sidebar-link">聊天室事件通知</a><a href="aec-voip.html" class="sidebar-link">单聊事件通知</a><a href="aec-live.html" class="sidebar-link">直播事件通知</a><a href="aec-other.html" class="sidebar-link">其它事件通知</a>
  </div>
</aside>
    </div>
  </div>
</div>

    <footer id="footer" class="wrapper">
  <div class="inner">
    <div id="footer-copyright">
      &copy; 2010-2019 <a href="https://www.starRTC.com" target="_blank">starRTC.com</a><br>
    </div>
    <div id="footer-links">
      <a href="https://github.com/starrtc/android-demo" class="footer-link" target="_blank"><i class="fa fa-github-alt"></i></a>
    </div>
  </div>
</footer>

  </div>
  <div id="mobile-nav-dimmer"></div>
  <nav id="mobile-nav">
  <div id="mobile-nav-inner">
    <ul id="mobile-nav-list">
      <a href="https://www.starRTC.com" class="main-nav-link">官网</a><a href="https://blog.starRTC.com" class="main-nav-link">博客</a><a href="https://github.com/starrtc/android-demo/issues" class="main-nav-link">论坛</a><a href="/zh-cn/docs/" class="mobile-nav-link">文档</a><a href="/zh-cn/download/" class="mobile-nav-link">下载</a><a href="/zh-cn/contact/" class="mobile-nav-link">联系我们</a>
      <li class="mobile-nav-item">
        <a href="https://github.com/starrtc/android-demo" class="mobile-nav-link" rel="external" target="_blank">GitHub</a>
      </li>
    </ul>
    
      <strong class="mobile-nav-title">开始使用</strong><a href="index.html" class="mobile-nav-link">概述</a><strong class="mobile-nav-title">Android集成</strong><a href="android-1.html" class="mobile-nav-link">1.嵌入SDK</a><a href="android-2.html" class="mobile-nav-link">2.SDK的基本说明</a><a href="android-3a.html" class="mobile-nav-link current">3a.初始化(公有云)</a><a href="android-3b.html" class="mobile-nav-link">3b.初始化(私有部署)</a><a href="android-4.html" class="mobile-nav-link">4.一对一消息</a><a href="android-5.html" class="mobile-nav-link">5.群组消息</a><a href="android-6.html" class="mobile-nav-link">6.聊天室消息</a><a href="android-7.html" class="mobile-nav-link">7.一对一视频通话</a><a href="android-8.html" class="mobile-nav-link">8.视频会议</a><a href="android-9.html" class="mobile-nav-link">9.互动直播</a><a href="android-10.html" class="mobile-nav-link">10.其它配套组件</a><a href="android-user-list.html" class="mobile-nav-link">在线用户列表</a><a href="android-beauty-callback.html" class="mobile-nav-link">美颜接口</a><a href="android-errCode.html" class="mobile-nav-link">ErrorCode对照表</a><strong class="mobile-nav-title">iOS集成</strong><a href="ios-1.html" class="mobile-nav-link">1.嵌入SDK</a><a href="ios-2.html" class="mobile-nav-link">2.SDK的基本说明</a><a href="ios-3a.html" class="mobile-nav-link">3a.初始化(公有云)</a><a href="ios-3b.html" class="mobile-nav-link">3b.初始化(私有部署)</a><a href="ios-4.html" class="mobile-nav-link">4.一对一消息</a><a href="ios-5.html" class="mobile-nav-link">5.群组消息</a><a href="ios-6.html" class="mobile-nav-link">6.聊天室消息</a><a href="ios-7.html" class="mobile-nav-link">7.一对一视频通话</a><a href="ios-8.html" class="mobile-nav-link">8.视频会议</a><a href="ios-9.html" class="mobile-nav-link">9.互动直播</a><a href="ios-10.html" class="mobile-nav-link">10.内网P2P直连通话</a><strong class="mobile-nav-title">web端集成</strong><a href="web-1.html" class="mobile-nav-link">1.嵌入SDK</a><a href="web-2.html" class="mobile-nav-link">2.SDK的基本说明</a><a href="web-3.html" class="mobile-nav-link">3.初始化</a><a href="web-4.html" class="mobile-nav-link">4.一对一消息</a><a href="web-5.html" class="mobile-nav-link">5.群组消息</a><a href="web-6.html" class="mobile-nav-link">6.聊天室消息</a><a href="web-7.html" class="mobile-nav-link">7.一对一视频通话</a><a href="web-8.html" class="mobile-nav-link">8.视频会议</a><a href="web-9.html" class="mobile-nav-link">9.互动直播</a><a href="web-10.html" class="mobile-nav-link">10.私有部署</a><strong class="mobile-nav-title">Win PC端集成</strong><a href="win-1.html" class="mobile-nav-link">1.嵌入SDK</a><a href="win-2.html" class="mobile-nav-link">2.初始化</a><a href="win-3.html" class="mobile-nav-link">3.一对一消息</a><a href="win-4.html" class="mobile-nav-link">4.群组消息</a><a href="win-5.html" class="mobile-nav-link">5.聊天室消息</a><a href="win-6.html" class="mobile-nav-link">6.一对一视频通话</a><a href="win-7.html" class="mobile-nav-link">7.视频会议</a><a href="win-8.html" class="mobile-nav-link">8.互动直播</a><strong class="mobile-nav-title">服务端api开发</strong><a href="aec-index.html" class="mobile-nav-link">概述</a><a href="aec-group.html" class="mobile-nav-link">群事件通知</a><a href="aec-chatroom.html" class="mobile-nav-link">聊天室事件通知</a><a href="aec-voip.html" class="mobile-nav-link">单聊事件通知</a><a href="aec-live.html" class="mobile-nav-link">直播事件通知</a><a href="aec-other.html" class="mobile-nav-link">其它事件通知</a>
    
  </div>
  <div id="mobile-lang-select-wrap">
    <span id="mobile-lang-select-label"><i class="fa fa-globe"></i><span>简体中文</span></span>
    <select id="mobile-lang-select" data-canonical="docs/android-3a.html">
      
        <option value="en">English</option>
      
        <option value="zh-cn" selected>简体中文</option>
      
    </select>
  </div>
</nav>
  <!-- Scripts -->
<!-- build:js build/js/main.js -->
<script src="/js/lang_select.js"></script>
<script src="/js/toc.js"></script>
<script src="/js/mobile_nav.js"></script>
<!-- endbuild -->
<!-- Algolia -->

<script type="text/javascript" src="https://cdn.jsdelivr.net/docsearch.js/1/docsearch.min.js"></script>
<script type="text/javascript">
document.getElementById('search-input-wrap').classList.add('on');
docsearch({
  apiKey: 'cdea7d4e47d84f6145b77e7f68689f35',
  indexName: 'hexo_zh-cn',
  inputSelector: '#search-input'
});
</script>


</body>
</html>